/**
 *Copyright (c) 2024 watereyes
 * workflow is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.workflow.api.rule;

import java.util.List;

import org.koron.ebs.mybatis.SessionFactory;

import com.koron.workflow.common.bean.StaffBean;

/**
 * 候选人过滤规则
 * 每一种规则对应一个实现类
 * @author bin
 *
 */
public interface FilterRuleStrategy {
	
	/**
	 * 候选人过滤规则
	 * @param factory 数据源
	 * @param staffs 需要过滤的人员
	 * @param initiator 发起人
	 * @param autoPicker 自动选人规则 <span> 1.制单人 2.直属上司 </span>
	 * @return 已按规则过滤的员工
	 */
	List<StaffBean> filter(SessionFactory factory, List<StaffBean> staffs, StaffBean initiator, int autoPicker);

}
